/**
 * "Visual Paradigm: DO NOT MODIFY THIS FILE!"
 * 
 * This is an automatic generated file. It will be regenerated every time 
 * you generate persistence class.
 * 
 * Modifying its content may cause the program not work, or your work may lost.
 */

/**
 * Licensee: DuKe TeAm
 * License Type: Purchased
 */
package com.pancho;

import java.io.Serializable;
public class Doctor implements Serializable {
	public Doctor() {
	}
	
	private int idDoctor;
	
	private String DNI;
	
	private String especialidad;
	
	private String name;
	
	private String lastName;
	
	private com.pancho.BabyMonitor babyMonitor;
	
	private void setIdDoctor(int value) {
		this.idDoctor = value;
	}
	
	public int getIdDoctor() {
		return idDoctor;
	}
	
	public int getORMID() {
		return getIdDoctor();
	}
	
	public void setDNI(String value) {
		this.DNI = value;
	}
	
	public String getDNI() {
		return DNI;
	}
	
	public void setEspecialidad(String value) {
		this.especialidad = value;
	}
	
	public String getEspecialidad() {
		return especialidad;
	}
	
	public void setName(String value) {
		this.name = value;
	}
	
	public String getName() {
		return name;
	}
	
	public void setLastName(String value) {
		this.lastName = value;
	}
	
	public String getLastName() {
		return lastName;
	}
	
	public void setBabyMonitor(com.pancho.BabyMonitor value) {
		if (this.babyMonitor != value) {
			com.pancho.BabyMonitor lbabyMonitor = this.babyMonitor;
			this.babyMonitor = value;
			if (value != null) {
				babyMonitor.setDoctoridDoctor(this);
			}
			else {
				lbabyMonitor.setDoctoridDoctor(null);
			}
		}
	}
	
	public com.pancho.BabyMonitor getBabyMonitor() {
		return babyMonitor;
	}
	
	public String toString() {
		return String.valueOf(getIdDoctor());
	}
	
}
